package org.xiaom.butler.bean;

import java.io.Serializable;

import com.google.gson.annotations.Since;

/**
 * 内容条目
 * 
 * @author CUIC4
 * 
 */
public class Content implements Serializable{
	private Integer id;
	private String chName;
	private String engName;
	private String chContent;
	private String engContent;
	private String imagePath;
	private Integer displayIndex;
	@Since(100)
	// 永远不出现在Json中
	private Department department;
	
	public static final String table_name = "content";
	public static final String id_ = "id_";
	public static final String ch_name = "ch_name";
	public static final String eng_name = "eng_name";
	public static final String ch_content = "ch_content";
	public static final String eng_content = "eng_content";
	public static final String image_path = "image_path";
	public static final String display_index = "display_index";
	public static final String department_id = "department_id";

	public Content() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getChName() {
		return chName;
	}

	public void setChName(String chName) {
		this.chName = chName;
	}

	public String getEngName() {
		return engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	public String getChContent() {
		return chContent;
	}

	public void setChContent(String chContent) {
		this.chContent = chContent;
	}

	public String getEngContent() {
		return engContent;
	}

	public void setEngContent(String engContent) {
		this.engContent = engContent;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Integer getDisplayIndex() {
		return displayIndex;
	}

	public void setDisplayIndex(Integer displayIndex) {
		this.displayIndex = displayIndex;
	}

	@Override
	public String toString() {
		return "ContentItem [id=" + id + "]";
	}

}
